from likeshop_project.accountapi.gettoken import Token
from likeshop_project.accountapi.login_api import login_model

class getcollect_productlist_model(Token):
    path = '/api/collect/getCollectGoods'
    def getcollect_productlist_action(self,hb):
        res = self.huihua.get(url=self.hosturl+self.path,headers=hb)

        return res.json()

import requests
s = requests.session()

re = login_model(huihua=s)
mfg = re.login_action(account='17909898989',password='123wqewqrf')
gettoken = mfg['data'].get('token')
hb = {'token':gettoken}
rw = getcollect_productlist_model(huihua=s)
mag = rw.getcollect_productlist_action(hb=hb)
print(mag)